from common.database import db


# 用户表(对应数据库字段)
class User(db.Model):
    id = db.Column(db.Integer, primary_key=True)
    nick_name = db.Column(db.String(100))
    password = db.Column(db.String(100))
    username = db.Column(db.String(100))
    auth = db.Column(db.Integer)
    create_time = db.Column(db.DateTime)
    title_img = db.Column(db.String(500))
    sign = db.Column(db.String(100))
